﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Diagnostics;

namespace Meteorite
{

    public abstract class Object : Entity
    {

        public bool Valid
        {
            get { return valid; }
            set { valid = value; }
        }
        bool valid;


        public Object(Model model)
            :base(model)
        {
            
        }

        public virtual void CollideWithShip(Ship ship)
        {
            
        }

        public override void Draw(Matrix View, Matrix Projection)
        {
            if (!Valid)
            {
                return;
            }
            base.Draw(View, Projection);
        }
    }
}

